package com.zbl.zblproject.core.entity;


import com.zbl.zblproject.erp.entity.ErpTempOrderItem;
import com.zbl.zblproject.erp.entity.ErpWarehouseItem;

import java.util.List;
import java.util.Objects;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/18
 * 配货单
 */
public class InvoiceOrder {



    /**
     * 对应商品
     */
    private ErpTempOrderItem goods;

    /**
     * 库存列表
     */
    private List<ErpWarehouseItem> items;

    public InvoiceOrder(){
        super();
    }

    public InvoiceOrder(ErpTempOrderItem goods){
        this.goods = goods;
    }


    public ErpTempOrderItem getGoods() {
        return goods;
    }

    public void setGoods(ErpTempOrderItem goods) {
        this.goods = goods;
    }

    public List<ErpWarehouseItem> getItems() {
        return items;
    }

    public void setItems(List<ErpWarehouseItem> items) {
        this.items = items;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InvoiceOrder that = (InvoiceOrder) o;
        return Objects.equals(goods, that.goods);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goods);
    }

    @Override
    public String toString() {
        return "InvoiceOrder{" +
                "goods=" + goods +
                ", items=" + items +
                '}';
    }
}
